﻿<Window x:Class="UI_Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Выгрузка данных из 1C в систему EDEX" Height="350" Width="500">
    <Grid>
        <StackPanel>
            <WrapPanel>
                <Label Width="180">Строка подключения к 1С</Label>
                <TextBox HorizontalAlignment="Left" Height="22" Width="250" Name="_connectionString" />
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">EDEX URI</Label>
                <TextBox HorizontalAlignment="Left" Height="22" Width="250" Name="_RootUri" />
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">EDEX API URI</Label>
                <TextBox HorizontalAlignment="Left" Height="22" Width="250" Name="_ApiUri" />
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">Электронный адрес</Label>
                <TextBox HorizontalAlignment="Left" Height="22" Width="250" Name="_email"/>
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">Пароль</Label>
                <PasswordBox HorizontalAlignment="Left" Height="23" Width="250" Name="_password"/>
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">Company Key</Label>
                <TextBox HorizontalAlignment="Left" Height="23" Width="250" Name="_companyKey"/>
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">Период выгрузки</Label>
                <DatePicker Width="122" Height="24" Name="_dateStart"/>
                <DatePicker Width="122" Height="24" Margin="6 0 0 0" Name="_dateEnd"/>
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">Контрагенты</Label>
                <TextBox HorizontalAlignment="Left" Height="69" Width="250" 
                         AcceptsReturn="True" 
                         TextWrapping="Wrap" 
                         VerticalScrollBarVisibility="Visible" 
                         Name="_suppliers"/>
            </WrapPanel>

            <WrapPanel>
                <Label Width="180">Путь для выгрузки файла</Label>
                <TextBox HorizontalAlignment="Left" Height="23" Width="250" Name="_path"/>
            </WrapPanel>

            <WrapPanel HorizontalAlignment="Center" Margin="0 10 0 0">
                <Button Content="Выгрузить на сайт" Margin="0 0 0 0" Width="130" Click="Button_Click_1" />
                <Button Content="Выгрузить в файл" Margin="10 0 0 0" Width="130" Click="Button_Click_2" />
                <Button Content="Загрузить файл" Margin="10 0 0 0" Width="130" Click="Button_Click_3" />
            </WrapPanel>
            
        </StackPanel>
    </Grid>
</Window>
